-- GENERATED SPELL FOR [Shadowforge Digger] --


function spell0_4846(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(11971,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4846', 30258, 1)
end

function Sorts_4846(pUnit, Event)
local choix_sorts_4846 = math.random(0, 0)
if choix_sorts_4846 == 0 then
pUnit:RegisterEvent('spell0_4846', 1, 1)
end
end

function mob4846_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4846', math.random(1500, 3000), 1)
end

function mob4846_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4846_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4846_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4846, 1, 'mob4846_Action')
RegisterUnitEvent(4846, 2, 'mob4846_Leave')
RegisterUnitEvent(4846, 3, 'mob4846_Kill')
RegisterUnitEvent(4846, 4, 'mob4846_Die')
